[url:...] を仕様の自動リンク <URL> へ一括変換#3088
Merged
Merged
Conversation
MARKUP_SPEC §7.4 は外部 URL を <URL> / [タイトル](URL) と規定しているが、 rd→md 変換器は [[url:...]] を他の参照と同じ「角括弧1段減」で [url:...] に 変換していたため、仕様と実データが乖離していた。bitclust #241 で <URL> 自動リンクがネイティブ描画できるようになったので、manual/ の [url:...] 453 箇所を仕様どおりの <URL> へ揃える。 - コードフェンス内・#@# コメント行(そこにあるのは [[url:]] の rd 残骸のみ) は変換対象外 - news/3_0_0.md の [[url:https://github.com/ruby/webrick](閉じ括弧不足で rd 時代から literal 表示だった)も <URL> に修正 - Gemfile.lock の bitclust を 83ab432(#241、<URL> 描画対応)へバンプ 検証: 変換前後の manual/ 全 1250 ファイルを bitclust 83ab432 の MDCompiler(GFM) で描画して比較し、意図的に直した news/3_0_0.md の 1ファイル以外は HTML が完全一致([url:] と <URL> は同じ direct_url 描画)。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MARKUP_SPEC §7.4 は外部 URL を
<URL>/[タイトル](URL)と規定していますが、rd→md 変換器は
[[url:...]]を他の参照タイプと同じ「角括弧1段減」規則で[url:...]に変換していたため、仕様と実データが乖離していました。rurema/bitclust#241 で
<URL>自動リンクがネイティブ描画できるようになったので、manual/ の
[url:...]453 箇所(117 ファイル)を仕様どおりの<URL>へ揃えます。変換規則
[url:TARGET]→<TARGET>(スクリプトによる一括変換)#@#コメント行は対象外(そこにあるのは[[url:]]の rd 残骸 7 件のみ)あわせて修正
manual/doc/news/3_0_0.mdの[[url:https://github.com/ruby/webrick](閉じ括弧不足で rd 時代から literal 表示だったタイポ)を
<URL>に修正(
<URL>の描画に必要。Fix syntax of news/1_9_0.md #3086 のリスト内フェンスの描画にも必要)検証
変換前(master)と変換後の manual/ 全 1250 ファイルを bitclust 83ab432 の
MDCompiler(GFM モード)で描画して比較:
(
[url:X]と<X>はどちらも同じdirect_urlで描画されるため)[[url:https://github.com/ruby/webrick]が正しい外部リンクになるのみ🤖 Generated with Claude Code